<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <div id="app">
       <!-- <ul>
           <li>{{info.name}}</li>
           <li>{{info.age}}</li>
           <li>{{info.height}}</li>
       </ul> -->

       <!-- 1.在遍历对象的过程中，如果只获取一个值，那么获取到的值时value-->
       <!-- <ul>
           <li v-for="item in info">{{item}}</li>
       </ul> -->
       <!-- 2在遍历对象的过程中，获取key和value  格式：(value,key) -->
       <ul>
           <li v-for="(value,key) in info">{{value}}---{{key}}</li>
       </ul>
      
        <!-- 3.在遍历对象的过程中，获取key和value和index  格式：(value,key,idex) -->
        <ul>
            <li v-for="(value,key,index) in info">{{index}}---{{value}}---{{key}}</li>
        </ul>

    </div>
    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data:{
                message:'你好呀！',
                info:{
                    name:'ting',
                    age:'18',
                    height:1.65
                }
            },
        })
    </script>
</body>
</html>